package com.pig4cloud.pigx.user.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 管理端API管理页面查询拥有ApiKey的用户列表
 *
 * @since 2022/10/28 16:20
 */
@Data
public class UserPageApiKeyVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long uid;

	/**
	 * 邮箱
	 */
	@ApiModelProperty(value = "邮箱")
	private String email;

	/**
	 * apiKey数量
	 */
	@ApiModelProperty(value = "apiKey数量")
	private Integer apiKeyNum;
}
